/*
 * drawFrame.cpp
 *
 *  Created on: 1 avr. 2009
 *      Author: CHETIER
 */

#include "SnowApplication.h"

int SnowApplication::drawFrame()
{
	//Draw Background
	SDL_BlitSurface(_background->srf_background, NULL, _screen, NULL);

	for(list<Cloud*>::iterator i=_background->list_cloud->begin(); i != _background->list_cloud->end(); ++i)
		(*i)->draw(_screen);

	//Display screen
	SDL_Flip(_screen);

	return EXIT_SUCCESS;
}
